<Query Kind="Statements">
  <NuGetReference>SharpSvn</NuGetReference>
  <Namespace>System.Net</Namespace>
  <Namespace>SharpSvn</Namespace>
  <Namespace>System.Collections.ObjectModel</Namespace>
</Query>

// Note: 远程目录
SvnUriTarget _remote = new SvnUriTarget("https://vc2000/svn/TestNew/2025_客户1_项目1");

using SvnClient _client = new SvnClient();
NetworkCredential _credential = new NetworkCredential("Administrator", "sicont_server");
_client.Authentication.Clear();
_client.Authentication.DefaultCredentials = _credential;
_client.Authentication.SslServerTrustHandlers += (sender, e) =>
{
    e.AcceptedFailures = e.Failures;
    e.Save = true;
};

// Note: 本地目录
string _local = @"C:\Users\zeros\Downloads\2025年6月12日项目4";

// Note: 检出
//_client.CheckOut(_remote, _local, new() { Depth = SvnDepth.Infinity });

SvnListArgs _args = new() { Depth = SvnDepth.Children };
_client.GetList(_remote, _args, out Collection<SvnListEventArgs> _list);

SvnListEventArgs _root_element = _list[0];
//_root_element.Dump();

string _path = Path.Combine(_local, _root_element.Path);
_path.Dump();

// Note: 访问本地路径
_client.GetInfo(new SvnPathTarget(_path), out var _info_of_path);
_info_of_path.Dump();